.class public Lcom/xingbook/park/c/a/v;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field private static final a:I

.field private static final b:I


# instance fields
.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:I

.field private f:Landroid/app/Activity;

.field private g:Lcom/xingbook/park/b/g;

.field private h:Lcom/xingbook/park/c/a/x;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    sget v0, Lcom/xingbook/park/c/a/y;->b:I

    sput v0, Lcom/xingbook/park/c/a/v;->a:I

    sget v0, Lcom/xingbook/park/c/a/y;->a:I

    sput v0, Lcom/xingbook/park/c/a/v;->b:I

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;FLcom/xingbook/park/c/a/x;)V
    .locals 10

    const v9, -0x333334

    const v8, 0x7f0a0040

    const/4 v7, 0x1

    const/4 v6, -0x2

    const/4 v5, 0x0

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const v0, -0xe64c12

    iput v0, p0, Lcom/xingbook/park/c/a/v;->e:I

    iput-object p1, p0, Lcom/xingbook/park/c/a/v;->f:Landroid/app/Activity;

    iput-object p3, p0, Lcom/xingbook/park/c/a/v;->h:Lcom/xingbook/park/c/a/x;

    sget v0, Lcom/xingbook/park/c/a/v;->b:I

    int-to-float v0, v0

    mul-float/2addr v0, p2

    float-to-int v0, v0

    sget v1, Lcom/xingbook/park/c/a/v;->a:I

    int-to-float v1, v1

    mul-float/2addr v1, p2

    float-to-int v1, v1

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    new-instance v3, Landroid/widget/TextView;

    invoke-direct {v3, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {v3, v8}, Landroid/widget/TextView;->setId(I)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {v3, v0, v1, v0, v1}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    const v4, -0xcccccd

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    const/high16 v4, 0x420c

    mul-float/2addr v4, p2

    invoke-virtual {v3, v5, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v4, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {p0, v3}, Lcom/xingbook/park/c/a/v;->addView(Landroid/view/View;)V

    new-instance v3, Landroid/widget/TextView;

    invoke-direct {v3, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    const-string v4, "\u66f4\u591a >"

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    const/16 v4, 0x10

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v0, v1, v0, v1}, Landroid/widget/TextView;->setPadding(IIII)V

    const/4 v0, 0x2

    new-array v0, v0, [[I

    new-array v3, v7, [I

    const v4, 0x10100a7

    aput v4, v3, v5

    aput-object v3, v0, v5

    new-array v3, v5, [I

    aput-object v3, v0, v7

    const/4 v3, 0x2

    new-array v3, v3, [I

    aput v9, v3, v5

    iget v4, p0, Lcom/xingbook/park/c/a/v;->e:I

    aput v4, v3, v7

    new-instance v4, Landroid/content/res/ColorStateList;

    invoke-direct {v4, v0, v3}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    const/high16 v3, 0x4200

    mul-float/2addr v3, p2

    invoke-virtual {v0, v5, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xb

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/4 v3, 0x6

    invoke-virtual {v0, v3, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/16 v3, 0x8

    invoke-virtual {v0, v3, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/v;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, v2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v9}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v4, -0x1

    invoke-direct {v3, v4, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/v;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, v2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v3, -0x1

    invoke-direct {v2, v3, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/v;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 10

    const/4 v9, 0x1

    const/4 v8, 0x2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->g:Lcom/xingbook/park/b/g;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->g:Lcom/xingbook/park/b/g;

    invoke-virtual {v0}, Lcom/xingbook/park/b/g;->d()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    const-string v2, ""

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    :cond_2
    invoke-virtual {p0}, Lcom/xingbook/park/c/a/v;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v2, "\u66f4\u591a\u53c2\u6570\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u5ba2\u670d\u4eba\u5458~"

    invoke-static {v0, v2, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_3
    const-string v2, ":"

    invoke-virtual {v0, v2, v8}, Ljava/lang/String;->split(Ljava/lang/String;I)[Ljava/lang/String;

    move-result-object v0

    array-length v2, v0

    if-lt v2, v8, :cond_0

    aget-object v2, v0, v1

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    aget-object v0, v0, v9

    const-string v4, ","

    invoke-virtual {v0, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    array-length v5, v4

    move v0, v1

    :goto_1
    if-lt v0, v5, :cond_4

    const-string v0, "xl"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    new-instance v1, Lcom/xingbook/park/c/a/w;

    const-string v0, "t"

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const/4 v2, -0x1

    invoke-static {v0, v2}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v0

    invoke-static {v0}, Lcom/xingbook/c/t;->c(I)I

    move-result v0

    invoke-direct {v1, p0, v0}, Lcom/xingbook/park/c/a/w;-><init>(Lcom/xingbook/park/c/a/v;I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->g:Lcom/xingbook/park/b/g;

    invoke-virtual {v0}, Lcom/xingbook/park/b/g;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/xingbook/b/n;->b(Ljava/lang/String;)V

    const-string v0, "i"

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v0}, Lcom/xingbook/b/n;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->f:Landroid/app/Activity;

    invoke-static {v0, v1}, Lcom/xingbook/c/t;->a(Landroid/content/Context;Lcom/xingbook/b/n;)V

    goto :goto_0

    :cond_4
    aget-object v6, v4, v0

    const-string v7, "="

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->split(Ljava/lang/String;I)[Ljava/lang/String;

    move-result-object v6

    aget-object v7, v6, v1

    aget-object v6, v6, v9

    invoke-virtual {v3, v7, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_5
    const-string v0, "ss"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "key"

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v2, p0, Lcom/xingbook/park/c/a/v;->f:Landroid/app/Activity;

    const-string v0, "t"

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const v4, 0x7fffffff

    invoke-static {v0, v4}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v4

    const-string v0, "key"

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v2, v4, v0, v1}, Lcom/xingbook/park/activity/SearchAct;->a(Landroid/content/Context;ILjava/lang/String;Z)V

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->h:Lcom/xingbook/park/c/a/x;

    invoke-interface {v0, v3}, Lcom/xingbook/park/c/a/x;->a(Ljava/util/HashMap;)V

    goto/16 :goto_0
.end method

.method public setData(Lcom/xingbook/park/b/g;)V
    .locals 4

    const/16 v1, 0x8

    const/4 v0, 0x0

    iput-object p1, p0, Lcom/xingbook/park/c/a/v;->g:Lcom/xingbook/park/b/g;

    if-nez p1, :cond_0

    invoke-virtual {p0, v1}, Lcom/xingbook/park/c/a/v;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->b()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_1

    const-string v2, ""

    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    :cond_1
    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->c()Z

    move-result v2

    if-nez v2, :cond_2

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/v;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    :cond_2
    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/v;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/park/c/a/v;->d:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->c()Z

    move-result v3

    if-eqz v3, :cond_5

    :goto_1
    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->b()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    const-string v1, ""

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    :cond_3
    const-string v0, " "

    :cond_4
    iget-object v1, p0, Lcom/xingbook/park/c/a/v;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_5
    move v0, v1

    goto :goto_1
.end method
